package com.balakitbbs.service;

import org.springframework.beans.factory.annotation.Autowired; 
import org.springframework.stereotype.Service;                 
import com.balakitbbs.page.SearchPageUtil;     
import java.util.*;     
import com.balakitbbs.entity.Bala_rebackpost_files;
import com.balakitbbs.dao.Bala_rebackpost_filesDaoIF;
   /**
    * bala_rebackpost_files Service类
    */ 
@Service
public class Bala_rebackpost_filesService{
@Autowired
private Bala_rebackpost_filesDaoIF dao;
	public void addBala_rebackpost_files(Bala_rebackpost_files bala_rebackpost_files){
		dao.addBala_rebackpost_files(bala_rebackpost_files);
	}

	public void delBala_rebackpost_files(String id){
		dao.delBala_rebackpost_files(id);
	}

	public void delBala_rebackpost_filesTrue(String id){
		dao.delBala_rebackpost_filesTrue(id);
	}

	public void updateBala_rebackpost_files(Bala_rebackpost_files bala_rebackpost_files){
		dao.updateBala_rebackpost_files(bala_rebackpost_files);
	}

	public Bala_rebackpost_files selectBala_rebackpost_filesById(String id){
		return dao.selectBala_rebackpost_filesByID(id);
	}

	public int selectBala_rebackpost_filesCount(){
		return dao.selectBala_rebackpost_filesCount();
	}

	public int selectBala_rebackpost_filesCountAll(){
		return dao.selectBala_rebackpost_filesCountAll();
	}

	public List<Bala_rebackpost_files> selectBala_rebackpost_filessByPage(SearchPageUtil spu){
		return dao.selectBala_rebackpost_filessByPage(spu);
	}

	public int selectBala_rebackpost_filessByPOJOCount(Bala_rebackpost_files bala_rebackpost_files){
		return dao.selectBala_rebackpost_filessByPOJOCount(bala_rebackpost_files);
	}

	public List<Bala_rebackpost_files> selectBala_rebackpost_filessByPOJO(Bala_rebackpost_files bala_rebackpost_files){
		return dao.selectBala_rebackpost_filessByPOJO(bala_rebackpost_files);
	}

	public List<Bala_rebackpost_files> selectBala_rebackpost_filessByPojoPage(SearchPageUtil spu,Bala_rebackpost_files bala_rebackpost_files){
		Map map = new HashMap();
		map.put("spu",spu);
		map.put("pojo",bala_rebackpost_files);
		return dao.selectBala_rebackpost_filessByPojoPage(map);
	}

}

